package com.qf.enums;

import lombok.Getter;

@Getter
public enum OAExceptionEnum {
    USER_PARAM_ERROR(2,"用户名或密码不能为空"),

    USER_NOT_EXISTS(3,"用户名不存在"),

    USER_PASSWORD_ERROR(4,"用户名密码错误"),
    UPLOAD_PIC_ERROR(5,"图片不能为空"),
    UPLOAD_PIC_SIZE_ERROR(6,"图片尺寸过大，建议小于5M"),
    UPLOAD_PIC_TYPE_ERROR(7,"图片类型不正确"),
    UPLOAD_PIC_BREAK_ERROR(8,"图片已损坏"),
    INFO_PARAM_ERROR(9,"参数不合法"),

    LEAVE_ADD_ERROR(10,"添加请假信息失败"),

    TRIP_DELETE_ERROR(11,"删除单个回收站文档信息失败"),

    INFO_NULL(23,"信息为空"),

    SHENGQING_SHIBAII(225,"出差申请失败"),

    ADD_INCOME_ERROR(56,"添加收入证明流程失败"),


    PIC_EXISTS(81,"图片内容为空!!"),

    PIC_TOO_BIG(82,"图片过大!!"),

    PIC_TYPE_ERROR(83,"图片类型不正确!!"),

    PIC_ALREADY_BROKEN(84,"图片已经损坏!!"),

    UPDATE_PASSWORD_ERROR(10,"密码修改失败"),

    USER_STATUS_ERROR(11,"当前状态为审核状态"),

    UPDATE_STATUS_ERROR(12,"修改用户状态失败"),

    APPLAY_DELETE_ERROR(13,"删除个人申请信息失败"),

    HUAN_YUAN_ERROR(215,"还原失败"),

    DUOUAN_ERROR(456,"多选参数不合法"),

    APK_EXISTS(55,"文件内容为空!!"),

    APK_TOO_BIG(56,"文件过大!!"),

    APK_TYPE_ERROR(57,"文件类型不正确!!"),

    RESERVECAR_TIME_ERROR(100,"预定车辆时间有冲突"),

    RESERVECAR_ADD_ERROR(111,"预定车辆失败");

    private Integer code;

    private String msg;

    OAExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
